package cn.hongwei.eduservice.feign.fallback;

import cn.hongwei.eduservice.feign.OSSFeign;
import cn.hongwei.result.R;
import cn.hongwei.result.ResultCodeEnum;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author Great
 * @email 1224028994@qq.com
 * 远程调用超时采用此方法降级
 */
@Component
public class FallbackPlain implements OSSFeign {
    @Override
    public R delete(String path, String module) {
        System.out.println("走了降级方法");
        //给页面的友好提示,如果不提示,页面提示"未知错误"
        return R.setResult(ResultCodeEnum.FILE_DELETE_ERROR);
    }
}
